setGlobalDuration(10)

env = genLineseg([0,10,1,100,1,10,0])
mod = genLineseg([1,40,.9,100,1.02,100,.95,200,1.1,100,1])
readTable(bus='mod', table=mod)
freqMod(pitch=250, modulator=.501, index=10, envelope=env, modulatorVar='mod')

startCsound()
